<?php
class CV_Unittest_Collector extends SimplePatternCollector{
		function __construct( $pattern = null ) {
			$pattern = !empty($pattern) ? $pattern : '/[^A-Za-z0-0\_\ -]Test\_.*\.php$/i';
			parent::__construct($pattern);
		}
	function _handle(&$test, $filename) {
		if (is_dir($filename)) {
			return $this->collect($test, $filename);
		}else{
			parent::_handle($test, $filename);
		}
	}
}
